// reudcers.js文件的作用是哟弄个来合并多个reducer成为一个rootReducer的
// 1.2 将cartReducer合并到一个rootReducer中来
// 引入combineReducers方法，用于合并reducer
import {combineReducers} from 'redux'
import { cartReducer } from './cartReducer.js'
import { userReducer } from './userReducer.js'

let rootReducer = combineReducers({
  cartModule: cartReducer,
  userModule: userReducer
})

export default rootReducer